package com.hzw.dao;

import com.hzw.bean.Message;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface MessageMapper extends Mapper<Message> {
    List<Message> getMessage(@Param("userId") String userId,@Param("type") int type);

    int getNotReadNum(@Param("userId") String userId,@Param("type") int type);

    void setMessageIsRead(@Param("userId") String userId,@Param("type") int type);
}